package adv6;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.PrintWriter;

public class IntTest {

	public static void main(String[] args) {
		try {
			PrintWriter pw = new PrintWriter(new File("data2.txt"));
			pw.print(2 > 1);
			pw.println();
			pw.print(Math.E);
			pw.println();
			pw.print(24.56);
			pw.println();
			pw.print(10245);
			pw.println();
			pw.close();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

		try {
			BufferedReader br = new BufferedReader(new FileReader("data2.txt"));
			String str = br.readLine();
			boolean f = new Boolean(str);
			String str2 = br.readLine();
			double f2 = Double.parseDouble(str2);
			System.out.println(f);
			System.out.println(f2);
			br.close();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

}
